using System;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public class GameData
{
    public int currency;
    public SerializableDictionary<string, bool> skillTree;
    public SerializableDictionary<string, int> inventory;
    public List<string> equipmentsId;
    public SerializableDictionary<string, bool> checkpoints;
    public string closestCheckpointId;
    public Vector3 lastPosition;
    public float lostCurrencyX;
    public float lostCurrencyY;
    public int lostCurrencyAmount;
    public SerializableDictionary<string, float> volumeSettings;

    public GameData()
    {
        lostCurrencyX = 0f;
        lostCurrencyY = 0f;
        lostCurrencyAmount = 0;
        currency = 0;
        skillTree = new SerializableDictionary<string, bool>();
        inventory = new();
        equipmentsId = new List<string>();
        closestCheckpointId = string.Empty;
        checkpoints = new SerializableDictionary<string, bool>();
        lastPosition = new();
        volumeSettings = new();
    }
}